
const carouselList = {
  data: [{
    createTime: '2020-03-20 05:30:27',
    id: '160000965529609',
    title: '新品首发',
    url: 'www.baidu.com',
    description: '轮播图的相关描述',
    clickCount: '520',
    status: '1',
    imgUrl: 'https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg',
    target: '1'
  }, {
    createTime: '2020-03-20 05:30:27',
    id: '160000965529610',
    title: '测试轮播',
    url: 'www.qq.com',
    description: '点击没什么反应',
    clickCount: '350',
    status: '1',
    imgUrl: 'https://fuss10.elemecdn.com/3/28/bbf893f792f03a54408b3b7a7ebf0jpeg.jpeg',
    target: '0'
  }]
}

module.exports = [
  // 修改是否开启状态
  {
    url: '/system/carousel/changeStatus',
    type: 'put',
    response: _ => {
      return {
        code: 200,
        message: '操作成功'
      }
    }
  },
  {
    url: '/system/carousel/list',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: carouselList.data,
        message: '操作成功'
      }
    }
  },
    // 修改轮播图
    {
      url: '/system/carousel',
      type: 'put',
      response: _ => {
        return {
          code: 200,
          message: '操作成功'
        }
      }
    },
    // 新增轮播图
    {
      url: '/system/carousel',
      type: 'post',
      response: _ => {
        return {
          code: 200,
          message: '操作成功'
        }
      }
    },
]
